package com.rd.student.jike.class1.jiangwanli;

import java.util.Arrays;

public class TestShuZu1 {
    public static void main(String[] args) {
        int[] a = new int[]{1,3,5,7,9,11,13,15,17,0};
        int index = 0;
        for (int i = 0; i < a.length; i++) {
            if (a[i] == 9){
                index = i+1;
            }
        }
        for (int i = a.length-1;i > index; i--){
            a[i] = a[i-1];
        }
        a[index] = 10;
        System.out.println(Arrays.toString(a));
    }
}
